# Maintainer: Jinming Wu, Patrick <me@patrickwu.space>
# Contributor: Jinming Wu, Patrick <me@patrickwu.space>
pkgname=wslu
pkgver=4.1.1
pkgrel=0
pkgdesc="collection of utilities for Linux Subsystems for Windows"
url="https://wslutiliti.es/wslu"
arch="noarch"
license="GPL-3.0-or-later"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
depends="bc bash-completion-dev grep psmisc"
makedepends="gzip"
checkdepends="bats"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wslutilities/wslu/archive/v$pkgver.tar.gz"
# Testsuite needs to be run from inside WSL
options="!check"

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
73e88d42206a0e4240ebcf8029dcfa06b83b94fdeba9bca86e98e31eadd47a38b3d93fe47d7fdf40239d76134ab65a1518b1ce15be0732651c2fa2df6c78d89e  wslu-4.1.1.tar.gz
"
